package com.oocl.o2o.client.service;

import java.util.List;

import com.oocl.o2o.client.entity.Food;

/**
 * @description: 
 * @author  XIEMI2
 * @date Aug 12, 2017 7:59:14 PM
 * @version 1.0
 */
public interface FoodService {

	/**
	 * 
	 * @param food
	 * @return Food
	 */
	public Food add(Food food);

	/**
	 * 
	 * @param id
	 * @return Food
	 */
	public Food delete(String id);

	/**
	 * @param menu
	 * @return Food
	 */
	public Food update(Food food);

	/**
	 * 
	 * @param id
	 * @return Food
	 */
	public Food findById(String id);

	/**
	 * find foods info by merchantId
	 * @param merchantId
	 * @return List<Food>
	 */
	public List<Food> findByMerchantId(String merchantId);
	
	/**
	 * @List<Food>
	 * @param merchantName
	 * @return
	 */
	public List<Food> findByMerchantName(String merchantName);

	/**
	 * find foods by food type name
	 * @param typeId
	 * @return List<Food>
	 */
	public List<Food> findByTypeId(String typeId);

	/**
	 * 
	 * @return List<Food>
	 */
	public List<Food> findAll();
	
	/**
	 * description 根据 typeId 以及 merchantId 查找指定的 Food信息
	 * @param typeId
	 * @param merchantId
	 * @return List<Food>
	 */
	public List<Food> findByTypeIdAndMerchantId(String typeId, String merchantId);
	
	/**
	 * 根据部分关键字实现模糊查询
	 * @param keyWord
	 * @return
	 */
	public List<Food> findByFoodKeyWord(String keyWord);
	


}


